home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / batch / tsbat36.zip / RUN.BAT < prev    next >
DOS Batch File  |  1991-11-09  |  1KB  |  63 lines

  1. echo off
  2. echo **********************************************
  3. echo * Virus Testbench by Timo Salmi 14-Jan-1990  *
  4. echo **********************************************
  5.  
  6. rem To use this batch you need Bob Taylor's excellent chksum.exe
  7. rem which can be downloaded from any well-stocked BSS, or from
  8. rem garbo.uwasa.fi by anonymous ftp.
  9.  
  10. rem Format a floppy disk. Calculate the checksums of the files on it and
  11. rem substitute these checksums below on the four rows starting with
  12. rem chksum. The safest way is to test with no harddisk available, or
  13. rem on your colleague's machine :-)
  14.  
  15. rem Invoke the susceptible program using
  16. rem   RUN PROGRAM-NAME-(WITH-EXTENSION) [PARAMETER(S)]
  17. rem and note down the checksum.
  18. rem The batch gives you the opportunity of seeing if the checksums
  19. rem are changed by your dubious program.
  20. rem If they are, then you are too late :-)
  21.  
  22. echo on
  23. chksum ibmbio.com 43484 ibmdos.com 11667 command.com 17821
  24. chksum chksum.exe 54541 list.com 60812
  25. echo off
  26.  
  27. if "%1"=="" goto err_1
  28. if not exist %1 goto err_2
  29.  
  30. set apu=%apu% %1
  31. echo on
  32. chksum%apu%
  33. echo off
  34. pause
  35.  
  36. :loop
  37. set lista=%lista% %1
  38. shift
  39. if not "%1"=="" goto loop
  40.  
  41. echo on
  42. %lista%
  43. chksum ibmbio.com 43484 ibmdos.com 11667 command.com 17821
  44. chksum chksum.exe 54541 list.com 60812
  45. chksum%apu%
  46. echo off
  47. goto out
  48.  
  49. :err_1
  50. echo No program name given
  51. echo 
  52. goto out
  53.  
  54. :err_2
  55. echo %1 not found
  56. echo 
  57. goto out
  58.  
  59. :out
  60. set apu=
  61. set lista=
  62. echo on
  63.